package io.renren.modules.live.dao;

import io.renren.modules.live.entity.FanweVideoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.live.vo.AnchorUpdateVideoVo;
import io.renren.modules.live.vo.FindByVoideListVideoNameAndAnchorNameVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 直播表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-11-17 09:18:22
 */
@Mapper
public interface FanweVideoDao extends BaseMapper<FanweVideoEntity> {

    List<FanweVideoEntity> getVoideList();

    void anchorUpdateVideo(AnchorUpdateVideoVo updateVideoVo);

    List<FanweVideoEntity> getBysortedFansAnchorIdListId(@Param("page") Long page,@Param("size")Long size);

    List<FanweVideoEntity> getChargesVoideList();

    List<FanweVideoEntity> findByVoideListVideoNameAndAnchorName( String content);

    List<FanweVideoEntity> findByAnchorIdList(@Param("list") List<Long> anchorIdList);

    List<FanweVideoEntity> getVoideRecommendList();

    List<FanweVideoEntity> getUserAttentionAnchor(Long anchorId);

    void addAnchorVideoFile(@Param("anchorId") Long anchorId, @Param("fileUrl") String fileUrl);

    FanweVideoEntity getByAnchorId(Long anchorId);
}
